package org.wk.account.domain;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;



/**
 * @ClassName	: SubAccount
 * @Package		：org.wk.digiccy.domain
 * @Author df.w 
 * @Create Time	：2018年5月8日 下午12:00:53
 * @Description	: 用户子账户
 */ 

/**
 * @ClassName	: SubAccount
 * @Package		：org.wk.account.domain
 * @Author df.w 
 * @Create Time	：2018年5月14日 上午11:33:23
 * @Description	: 
 */ 
@Entity(name="org.wk.account.domain.SubAccount")
@Table(name="sub_account")
public class SubAccount extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;

	@Column
	private String userId;
		
	/**
	 * @Fields accountTypeId: String
	 * @Desc TODO: 账户类型ID
	 */
	@Column
	private String accountTypeId;
	/**
	 * @Fields accountTypeCode: String
	 * @Desc TODO: 账户类型码
	 */
	@Column
	private String accountTypeCode;
	/**
	 * @Fields accountTypeName: String
	 * @Desc TODO: 账户类型码
	 */
	@Column
	private String accountTypeName;
	
	/**
	 * @Fields amount: int
	 * @Desc TODO: 金额 
	 */
	@Column
	private BigDecimal amount;


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getUserId() {
		return userId;
	}


	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getAccountTypeName() {
		return accountTypeName;
	}

	public void setAccountTypeName(String accountTypeName) {
		this.accountTypeName = accountTypeName;
	}

	public String getAccountTypeId() {
		return accountTypeId;
	}


	public void setAccountTypeId(String accountTypeId) {
		this.accountTypeId = accountTypeId;
	}


	public String getAccountTypeCode() {
		return accountTypeCode;
	}


	public void setAccountTypeCode(String accountTypeCode) {
		this.accountTypeCode = accountTypeCode;
	}


	public BigDecimal getAmount() {
		return amount;
	}


	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}


	
	
	
	
}
